<html>
<head>
<link rel="stylesheet" type="text/css" href="a.css" /><title>Receipt</title></head>
<div style="font-size:24px" align='center'><b>{{address.name}}</b></div>
<div style="font-size:14px" align='center'>{{address.status}}</div>
<div style="font-size:24px" align='center'>{{title.name}}</div>
<div style="font-size:14px" align='center'>{{address.address}}</div>
<div style="font-size:14px" align='center'><i>Website :</i> {{title.url}}  <i>Email 
:</i> {{title.email_1}}  <i>Ph :</i> {{title.phone}}  <i>Fax :</i> {{title.faxno}}</div><br><br>
<center><h3><b>RECEIPT</h3>  </b></center>
<br/>


<div align="left" style="position:absolute;top:220px;left:0px;"> Receipt No. : {{job.job_no}}</div>
<div align="right" style="position:absolute;top:220px;right:0px;">Dated : {{job.date}} </div>
<br/><br/><br/>

{% load humanize %}
<div align="left">Received a sum of Rs.{{bill.balance|intcomma}} (Rupees  {{ net_total_eng }}only) from  <i> {% for clients in client %}{{ clients.client__client__first_name}} {{clients.client__client__middle_name}} {{clients.client__client__last_name}} {{clients.client__client__address}} {{clients.client__client__city}} {% if clients.client__client__company != ""%}
Agency: {{clients.client__client__company}}
{% endif %}{% endfor %} by {{ job.pay}}  {{ job.check_number }}, {{job.check_dd_date }} on account of 
{% for mates in mate %}
{% if mates.report_type == 1 %} 
	{% for comments in matcomment %}
			{% if comments.id == mates.clientjob__material__matcomment_id %}
			{{comments.name|lower }}
			{% endif %}
		{% endfor %}
	{{mates.clientjob__material__name}}
	{% if not forloop.last %},{% endif %}
{% elif mates.report_type == 2 %}
	{% for comments in matcomment %}
			{% if comments.id == mates.suspencejob__field__matcomment_id %}
			{{comments.name|lower }}
			{% endif %}
		{% endfor %}
	{{mates.suspencejob__field__name}}
	{% if not forloop.last %},{% endif %}	
{% elif mates.report_type == 3  %}Advance Adjust
{% else %}CDF
{% endif %}
{% endfor %}.</div>


<div style="position:absolute;right:300px;top:450px;"><b> Cashier</b></div>

</body>
</html>


